/*
 * @FileName: [UtilDateSerializer.java] 
 * @Package com.bci.pwtz.common 
 * 
 * 
 * Copyright (c) 2011-2015 BCINFO Technology Limited Com.
 * All rights reserved.
 * 
 * This software is the confidential and proprietary 
 * information of BCINFO Technology Limited Company
 * ("Confidential Information"). You shall not disclose 
 * such Confidential Information and shall use it only
 * in accordance with the terms of the contract agreement 
 * you entered into with RKY.
 * 
 * $Rev: 217 $
 * $LastChangedDate$
 * $LastChangedBy: huangb $
 * 
 * @category ICCARD
 * @version 1.1
 * @author $Author: huangb $
 *
 * Change History:[Formatter: author date description] <br/>
 * 1
 * 2
 * 3
*/


package com.bci.pwtz.common.util;

import com.google.gson.JsonElement;
import com.google.gson.JsonPrimitive;
import com.google.gson.JsonSerializationContext;
import com.google.gson.JsonSerializer;
import java.lang.reflect.Type;

/**
 * 一句话描述 <br/>
 * <p>Description:<br/>
 *    <p>TODO 详细描述
 *
 * <p>For Examples <br/>
 * <PRE>
 *      TODO 代码使用示例
 * </PRE>
 * <p>
 */
public class UtilDateSerializer implements JsonSerializer<java.util.Date> {

    

public JsonElement serialize(java.util.Date src, Type typeOfSrc,

JsonSerializationContext context) {

return new JsonPrimitive(src.getTime());

}

}